package com.API;

public class Test08 {
    public static void main(String[] args) {
        int []arr =null;
        System.out.println(ComeBack(arr));

    }
    public static String ComeBack( int[]arr) {
        if (arr==null){
            return "null";
        }
        if(arr.length==0)
            return "[]";
        StringBuffer fanHui = new StringBuffer("[");
        for (int i = 0; i < arr.length; i++) {
            if(arr.length!=0&&arr[i]<=arr.length-1){
                fanHui.append(arr[i]+", ");
            }else{
                fanHui.append(arr[i]+"]");
            }
        }
        return fanHui.toString();
    }
}
